home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / Text / Show / Less / less-252 / lesskey.h < prev    next >
Text File  |  1994-10-13  |  549b  |  29 lines

  1. /*
  2.  * Format of a lesskey file:
  3.  *
  4.  *    LESSKEY_MAGIC (4 bytes)
  5.  *     sections...
  6.  *    END_LESSKEY_MAGIC (4 bytes)
  7.  *
  8.  * Each section is:
  9.  *
  10.  *    section_MAGIC (1 byte)
  11.  *    section_length (2 bytes)
  12.  *    key table (section_length bytes)
  13.  */
  14. #define    C0_LESSKEY_MAGIC    '\0'
  15. #define    C1_LESSKEY_MAGIC    'M'
  16. #define    C2_LESSKEY_MAGIC    '+'
  17. #define    C3_LESSKEY_MAGIC    'G'
  18.  
  19. #define    CMD_SECTION        'c'
  20. #define    EDIT_SECTION        'e'
  21. #define    END_SECTION        'x'
  22.  
  23. #define    C0_END_LESSKEY_MAGIC    'E'
  24. #define    C1_END_LESSKEY_MAGIC    'n'
  25. #define    C2_END_LESSKEY_MAGIC    'd'
  26.  
  27. /* */
  28. #define    KRADIX        64
  29.